import urllib.request
import urllib.error

try:
	urllib.request.urlopen("http://www.3333qqqaewe.com")
except urllib.error.HTTPError as e:
	print(e.code)
	print(e.reason)
except urllib.error.URLError as e:
	print(e.reason)